import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    component: () => import('../views/Index.vue'),
  },
  {
    path: '/linggan',
    component: () => import('../views/LingGan.vue'),
  },
  {
    path: '/yongpin',
    component: () => import('../views/YongPin.vue'),
  },
  {
    path: '/me',
    component: () => import('../views/Me.vue'),
  },
  {
    path: '/anli',
    component: () => import('../views/AnLi.vue'),
  },
  {
    path: '/guanjia',
    component: () => import('../views/GuanJia.vue'),
  },
];

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes,
});

export default router;
